package com.yuyou.train.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.train.service.api.user.entity.UserHwTeacher;

@Mapper
public interface UserHwTeacherMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserHwTeacher record);

    UserHwTeacher selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserHwTeacher record);
    
    UserHwTeacher selectByHwAndUserId
    		(@Param(value="userHwId") String userHwId, 
    		@Param(value="userId") String userId);
    
    List<UserHwTeacher> findByHw(
    		@Param(value="userHwId") String userHwId, 
    		@Param(value="status") String status);
}